package cloud.serviceA.controller;

import lombok.extern.slf4j.Slf4j;
import io.swagger.annotations.Api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cloud.serviceA.feign.StudentRemote;

@Api
@Slf4j
@RestController
@RequestMapping("/user")
public class UserController {
	
	@Autowired
	private StudentRemote studentRemote;
	
	@PostMapping("/getUser")
	public void getUser(){
		log.info("1111111111");
		studentRemote.getStudent();
		log.info("2222222222");
	}

}
